import { Module, Global } from '@nestjs/common';
import { DatabaseModule } from '../db/database.module';
import { MongoProviders } from '../db/database.models';

/**全局公共模块 */
@Global()
@Module({
	imports: [
		/**数据库模块 */
		DatabaseModule,
	],
	controllers: [],
	providers: [
		...MongoProviders
	],
	exports: [
		...MongoProviders
	],
})
export class CommonModule { }
